package cn.wolfcode.ssm.mapper;

import cn.wolfcode.ssm.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Role role);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    void updateByPrimaryKey(Role record);

    List<Role> selectByEmpId();

    void insertRelation(@Param("roleId") Long roleId, @Param("ids") Long[] ids);

    void deleteRelation(Long id);
}